package com.tarena.dang.services;


import com.tarena.dang.pojos.User;

public interface UserService {
	public void register(User user, String ip) throws Exception;

	public boolean checkEmailExist(String email) throws Exception ;

	public boolean checkEmailCode(User user, String code) throws Exception ;

	public boolean login(String name, String password,String ip) throws Exception;

	public boolean checkEmailVerify(String name) throws Exception;

	public User findByEmail(String email) throws Exception;
}
